<div id="block-center" style="position: relative;">
                	<div class="header-orange">
                    	<div class="icon"></div>
                        <div class="title">NEW BOOKS</div>
                        <div class="clr"></div>
                     </div>
                     <div class="block-content-1">
                     	<div id="products">
                        	<?php 
                        		if(count($this->Items)>0){
                        		foreach ($this->Items as $key => $val){
                        			$name = $val['name'];
	                          		$linkImg = FILES_URL . '/books/small/' . $val['picture'];
	                          		$picture = '<img src="' . $linkImg . '" />';
	                          		$price = $val['price'];
	                          		$selloff = $val['selloff'];
	                          		if($selloff <=0 ){
	                          			$price = '<span class="price-1" style="font-weight: bold; color: red">$' 
	                          						. $price . '</span> ';
	                          		}else{
	                          			$price = '<span class="price-1" style="text-decoration: line-through;">$' . $price . '</span> ' 
	                          					 . '<span class="saleoff" style="font-weight: bold; color: red">$' 
	                          					 . $selloff . '</span>';
	                          		}
	                          		
	                          		$filter = new Zend_Filter();
									$multiFilter = $filter->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'UTF-8')))
														 ->addFilter(new Zend_Filter_StringTrim())
								 						 ->addFilter(new Zend_Filter_Alnum(true))
								  						 ->addFilter(new Zend_Filter_PregReplace(array('match'=>'#\s+#','replace'=>'-')))
								  						->addFilter(new Zend_Filter_Word_SeparatorToDash())
								  						->addFilter(new Zendvn_Filter_RemoveCircumflex());
								  
	                          		$urlOptions = array('module'=>'shopping','controller'=>'index',
														'action'=>'detail','cid'=> $val['cat_id'],
														'tcat'=>$filter->filter($val['category_name']),
														'title'=>$filter->filter($val['name']),
														'id'=>$val['id']);					
									$linkDetial = $this->url($urlOptions,'shop-detail');
									$linkCart = $this->baseUrl('/shopping/index/add-item/id/' . $val['id']);	                          									 
                        	?>
	                            <div id="item">
	                            	<div class="img">
	                                	<a href="<?php echo $linkDetial;?>"><?php echo $picture;?></a>
	                                </div>
	                                <div class="title">
	                                	<?php echo $name;?>
	                                </div>
	                                <div class="price">
	                                	Price: <?php echo $price;?>
	                                </div>
	                                <div class="add-to-cart">
	                                	<span>
	                                		<a href="<?php echo $linkCart;?>">
	                                			<img src="<?php echo $this->imgUrl;?>/add-cart-icon.png" />
	                                		</a>
	                                	</span> 
	                                    <span><a href="<?php echo $linkDetial;?>">Detail</a></span>
	                                </div>
	                         	</div>
	                         <?php 
                        			}
                        		}
	                         ?>
                            <div class="clr" style="margin-bottom: 15px;"></div>
                        </div>
                     </div>
                </div>
               <?php 
                   $currentUrl = $this->baseUrl($this->currentController . '/index');
                   echo $this->paginationControl($this->panigator,'Sliding','pagination.phtml',array('currentUrl'=>$currentUrl));
               ?>